#ifndef MYCODESETWIDGET_H
#define MYCODESETWIDGET_H


#include <QWidget>
#include <QStringList>

QT_BEGIN_NAMESPACE
class QLineEdit;
class QPushButton;
class QComboBox;
QT_END_NAMESPACE



class MyCodeSetWidget : public QWidget
{
  Q_OBJECT


public:
  explicit MyCodeSetWidget(QWidget *parent = nullptr);
~MyCodeSetWidget();

      void create();

signals:
     void mySignalCodeSetting(int old_addr,int new_addr); //自定义信号函数,msg参数可以省略


private slots:

  //获取当前id
  void getIndex(int index);

  //发送原新编码
  void btn1Slots();

private:

  int flag = 1;

  QLineEdit *lineEdit = nullptr;

  QPushButton *btn1 = nullptr;

  QComboBox *comboBox = nullptr;

public:

};


#endif // MYCODESETWIDGET_H
